package me.bulb.conditional;

import me.bulb.StringHelper;

/**
 * 判断字符串不相等的条件
 * 
 * @author lijinting01
 *
 */
public class StringValueNotEqualsCondition implements Condition<String> {
	/**
	 * 用于被对比的字符串
	 */
	private String element;

	public StringValueNotEqualsCondition(String element) {
		super();
		this.element = element;
	}

	@Override
	public boolean apply(String e) {
		return !StringHelper.contentEquals(element, e);
	}

}
